<template>
  <div>
    <h1>你好,这里是温州理工茶山校区</h1>
    <nav class="building-nav">
      <router-link to="/chashan/building5">五号楼</router-link>
      <router-link to="/chashan/building6">六号楼</router-link>
      <router-link to="/chashan/building7">七号楼</router-link>
    </nav>
    <router-view></router-view>
  </div>
</template>

<style scoped>
.building-nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
}

.building-nav a {
  padding: 10px 20px;
  background-color: #f0f0f0;
  border-radius: 5px;
  text-decoration: none;
  color: #333;
}

.building-nav a:hover {
  background-color: #e0e0e0;
}

.building-nav a.router-link-exact-active {
  background-color: #4CAF50;
  color: white;
}
</style>